package club.koorilkaze.dao;

import club.koorilkaze.vo.User;

import java.sql.SQLException;
import java.util.ArrayList;

/**
 * @program: IuserDAO
 * @description: 定义 数据库操作接口
 * @author: Hermit_Yoshino
 * @create: 2019-07-24 19:07
 **/
public interface IUserDAO {
    /** 
     * @Description: 输入 userid 查找该用户的所有信息接口
     * @param: [userid]
     * @author: Hermit_Yoshino
     * @date: 2019/7/24 19:05
     * @throws: Exception
     * @return: club.koorilkaze.vo.User 
     * @version: 0.0.1
     */ 
    public User selectUser ( String userid ) throws SQLException;

    /** 
     * @Description: 输入 userid 查找该用户的所有信息接口
     * @param: []
     * @author: Hermit_Yoshino
     * @date: 2019/7/24 19:06
     * @throws: Exception
     * @return: java.util.ArrayList<club.koorilkaze.vo.User> 
     * @version: 0.0.1
     */ 
    public ArrayList<User> selectAll () throws SQLException;

    /** 
     * @Description: 修改user的属性，不包括userid
     * @param: [user]
     * @author: Hermit_Yoshino
     * @date: 2019/7/25 14:12
     * @throws: Exception
     * @return: void 
     * @version: 0.0.1
     */ 
    public void updata (ArrayList<User> list) throws SQLException;

}
